package come.iweb.user.model;
//JavaBean
/**
 * 实体类
 */
public class User {
    private long id;
    private String username;
    private String password;
    private String role;
    private String email;
    private String createtime;
    private String updatetime;
    private String oldpassword;


    public User() {
    }

    public String getOldpassword() {
        return oldpassword;
    }

    public void setOldpassword(String oldpassword) {
        this.oldpassword = oldpassword;
    }

    public User(Long id, String username, String password, String role, String email, String createtime, String updatetime, String oldpassword) {
        this.id = id;
        this.username = username;
        this.password = password;
        this.role = role;
        this.email = email;
        this.createtime = createtime;
        this.updatetime = updatetime;
        this.oldpassword = oldpassword;

    }

    /**
     * 获取
     * @return id
     */
    public Long getId() {
        return id;
    }

    /**
     * 设置
     * @param id
     */
    public void setId(long id) {
        this.id = id;
    }

    /**
     * 获取
     * @return username
     */
    public String getUsername() {
        return username;
    }

    /**
     * 设置
     * @param username
     */
    public void setUsername(String username) {
        this.username = username;
    }

    /**
     * 获取
     * @return password
     */
    public String getPassword() {
        return password;
    }

    /**
     * 设置
     * @param password
     */
    public void setPassword(String password) {
        this.password = password;
    }

    /**
     * 获取
     * @return role
     */
    public String getRole() {
        return role;
    }

    /**
     * 设置
     * @param role
     */
    public void setRole(String role) {
        this.role = role;
    }

    /**
     * 获取
     * @return email
     */
    public String getEmail() {
        return email;
    }

    /**
     * 设置
     * @param email
     */
    public void setEmail(String email) {
        this.email = email;
    }

    /**
     * 获取
     * @return createtime
     */
    public String getCreatetime() {
        return createtime;
    }

    /**
     * 设置
     * @param createtime
     */
    public void setCreatetime(String createtime) {
        this.createtime = createtime;
    }

    /**
     * 获取
     * @return updatetime
     */
    public String getUpdatetime() {
        return updatetime;
    }

    /**
     * 设置
     * @param updatetime
     */
    public void setUpdatetime(String updatetime) {
        this.updatetime = updatetime;
    }

    public String toString() {
        return "User{id = " + id + ", username = " + username + ", password = " + password + ", role = " + role + ", email = " + email + ", createtime = " + createtime + ", updatetime = " + updatetime + ", oldpassword = " + oldpassword + "}";
    }
}
